#!/usr/bin/env bash

text="Example"

if (( $# > 0 )); then
  text="$@"
fi

for font in /usr/share/figlet/fonts/*.flf; do
  printf "$font\n"
  figlet -w $(tput cols) -f "$font" "$text"
done